package cn.yunhe.service;

import cn.yunhe.model.Member;
import com.github.pagehelper.Page;

import java.util.Map;

public interface MemberBiz {

    /**
     * 多条件查询
     * @param objectMap
     * @return
     */
    Page<Member>searchByConditions(Map<String, Object> objectMap);

    /**
     * 新增记录
     * @param member
     * @return
     */
    Integer insertRecord(Member member);

    /**
     * 删除记录
     * @param member
     * @return
     */
    Integer deleteRecord(Member member);

    /**
     * 更新记录
     * @param member
     * @return
     */
    Integer updateRecord(Member member);

    /**
     * 通过ID查询
     * @param member
     * @return
     */
    Member getById(Member member);

}
